using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    class CGuiCharacter
    {
        #region "Variable"
        CBusCharacter BusCharacter;
        ContentManager _Content;
        bool IsEnable = true;
        #endregion

        #region "Properties"
        public bool IsEnableGui
        {
            set { IsEnable = value; }
            get { return IsEnable; }
        }
        #endregion

        #region "Constructor"
        public CGuiCharacter(ContentManager content)
        {
            _Content = content;
            BusCharacter = new CBusCharacter(_Content);
        }
        #endregion
        #region "Method"
        public void Update(GameTime gameTime)
        {
            if (IsEnable == true)
            {
                BusCharacter.Update(gameTime);
            }
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            if (IsEnable == true)
            {
                BusCharacter.Draw(spriteBatch);
            }
        }
        #endregion
    }
}
